package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_journal;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_journalSearchContext;

/**
 * 实体[Account_journal] 服务对象接口
 */

public interface IAccount_journalService{
     void createBatch(List<Account_journal> account_journals, int batchSize) ;
     Account_journal get(Integer id) ;
     Account_journal get(Account_journal account_journal) ;
     boolean create(Account_journal account_journal) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean update(Account_journal account_journal) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Account_journal> account_journals, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_journal> searchDefault(Account_journalSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_journal> selectByOdoo_default_credit_account(Integer id) ;

    /**
     * 根据科目查询
     */
     Page<Account_journal> selectByOdoo_default_debit_account(Integer id) ;

    /**
     * 根据科目查询
     */
     Page<Account_journal> selectByOdoo_loss_account(Integer id) ;

    /**
     * 根据科目查询
     */
     Page<Account_journal> selectByOdoo_profit_account(Integer id) ;

    /**
     * 根据EMail别名查询
     */
     Page<Account_journal> selectByOdoo_alias(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Account_journal> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_journal> selectByOdoo_currency(Integer id) ;

    /**
     * 根据银行账户查询
     */
     Page<Account_journal> selectByOdoo_bank_account(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_journal> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_journal> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_journal convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_journal model ,Account_journal domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_journal convert2Model(Account_journal domain , cn.ibizlab.odoo.core.client.model.Iaccount_journal model);

}
